package com.xiaochi.subject.domain.handler.subject;

import com.xiaochi.subject.common.enums.SubjectInfoTypeEnum;
import com.xiaochi.subject.domain.entity.SubjectInfoBO;
import com.xiaochi.subject.domain.entity.SubjectOptionBO;
import com.xiaochi.subject.infra.basic.entity.SubjectInfo;

/**
 * @author zqx
 * @since 2024/8/13
 */
public interface SubjectTypeHandler {

    /**
     * 枚举身份的识别
     * @return
     */
    SubjectInfoTypeEnum getHandlerType();

    /**
     * 实际的题目的插入
     */
    void add(SubjectInfoBO subjectInfoBO);

    /**
     *实际题目的查询
     * @param subjectId
     * @return
     */
    SubjectOptionBO query(Long subjectId);
}
